import upload from '@/utils/upload'
import request from '@/utils/request'

export function uploadZm(filePath, formData) {
    return upload({
        filePath,
        formData: {
            ...formData,
            imageType: '111',
            imageSort: 1
        },
    })
}
export function uploadFm(filePath, formData) {
    return upload({
        filePath,
        formData: {
            ...formData,
            imageType: '112',
            imageSort: 1
        },
    })
}

export function getFileBase64(data) {
    return request({
        url: '/biz/image/getFileBase64',
        method: 'post',
        data,
        loading: false
    })
}

export function idCardOCR(data) {
    return request({
        url: '/biz/tencentCloud/idCardOCR',
        method: 'post',
        data,
        loading: false
    })
}

